<?php
class Front_Form_Login extends Zend_Form{

	public function init() {
		$this->setName('login');

		//		$title = new Zend_Form_Element_Select('title');
		//		$title->setLabel('Title')
		//		->setMultiOptions(array('mr'=>'Mr', 'mrs'=>'Mrs'))
		//		->setRequired(true)->addValidator('NotEmpty', true);

		$userName = new Zend_Form_Element_Text('userName');
		$userName->setLabel('User name:')->setAttrib('id', 'username')
		->setRequired(true)
		->addValidator('NotEmpty');
		

		$passWord = new Zend_Form_Element_Password('passWord');
		$passWord->setLabel('Pass word: ')
		->setAttrib('id', 'password')
		->setRequired(true)
		->addValidator('NotEmpty');
			
		//		$email = new Zend_Form_Element_Text('email');
		//		$email->setLabel('Email address')
		//		->addFilter('StringToLower')
		//		->setRequired(true)
		//		->addValidator('NotEmpty', true)
		//		->addValidator('EmailAddress');


		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setLabel('Login');

		$this->addElements(array($userName, $passWord,
		$submit));
	}
}